package com.company.demo2;

//自定义注解赋值
@MyAnnotaion(value = "学生类",value2 = 1)
public class Student {
    @MyAnnotaion(value = "学生姓名",value2 = 1212)
    public String name;
    @MyAnnotaion(value = "学生方法",value2 = 1)
    public void study(){
        System.out.println(name+"在学习");
    }
}
